package top.ffhome.concurrent.beautiful.ch01;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;

public class DaemonThreadTest {
    private static final Log log = LogFactory.get();

    public static void main(String[] args) throws InterruptedException {
        Thread thread = new Thread(() -> {
            for (; ; ) {
            }
        });

        thread.setDaemon(true);
        thread.start();
        log.info("main thread is over");
    }
}
